import java.util.Arrays;
/*import java.util.*;
import java.sql.*;

public class Test {
    public static void main(String[] args) {
      Date date = new Date();
        System.out.println(date.getTime());
    }
}*/
class Student {
    private String name;
    private int age;

    public static String classRoom = "18-201" ;

    public static String getClassRoom() {
        return classRoom;
    }
    public static void fun() {
        System.out.println(  "哈哈哈");
    }

    public static void setClassRoom(String classRoom) {
        Student.classRoom = classRoom;
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
class test {
    public static int staticnum = 100;
    public int date = 111;

    {
        // 一般用于初始化非静态成员变量
        System.out.println("静态代码块被执行力。。。");
        date = 222;
    }


}
public class Test {
    public static void main(String[] args) {
        test test1 = new test();
        System.out.println(test1.date);

    }
}
/*public class Test{
    public static void main(String[] args) {
        { //直接使用{}定义，普通方法块
            int x = 10 ;
            System.out.println("x1 = " +x);
        }
        int x = 100 ;
        System.out.println("x2 = " +x);
    }
}*/
/*
public class Test {
   public static int count = 1;
    public static void main(String[] args) {
        Test test = new Test();
        test.count++;

        Test test2 = new Test();
        test2.count++;

        Test test3 = new Test();
        test3.count++;

        Test.count--;

        System.out.println(Test.count);

        {
            int x = 10;
            System.out.println(x);
        }
*/

       /* Student student1 = new Student("张三",15);
        //student1.classRoom = "18-101";
        Student student2 = new Student("李四",13);
       // student2.classRoom = "18-101";
        Student student3 = new Student("王五",12);
        System.out.println(student1.classRoom);
        System.out.println(student2.classRoom);
        System.out.println(student3.classRoom);

     //  student3.classRoom = "18-101";
        System.out.println("");*/


/*class Dog {*/

/*
    private String name;

    public int age;

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void eat() {
        System.out.println(this.name + "吃东西");
    }
    public void wag() {
        System.out.println(this.name + "摇尾巴");
    }
}
public class Test {
    public static void main(String[] args) {


        Date date = new Date();

      */
/*  Dog dog = new Dog("旺财",3);
        dog.setName("小黄");
        System.out.println(dog.getName());
        dog.eat();
*//*


       */
/* dog.setName("小黄");
        System.out.println(dog.name);*//*


    }
}*/
